const curVarible = {
    state: {
      domData: {
          varName: '',
          varText: '',
          varSeletor: '',
          xpath: ''
      }
    },
    mutations: {
      setVarName: (state, varName) => {
        state.domData.varName = varName
      },
      setVarText: (state, varText) => {
        state.domData.varText = varText
      },
      setVarSeletor: (state, varSeletor) => {
        state.domData.varSeletor = varSeletor
      },
      clearCurVarible: (state) => {
        state.domData.varName = ''
        state.domData.varText = ''
        state.domData.varSeletor = ''
        state.domData.xpath = ''
      },
      setCurVarible: (state, val) => {
        console.log(val);
        state.domData.varName = val.varName || ''
        state.domData.varText = val.varText || ''
        state.domData.varSeletor = val.varSelector || ''
        state.domData.xpath = val.xpath || ''
        console.log('aa', state);
      }
    },
    actions: {
    }
  }

  export default curVarible